package com.it.myd.service.main;

import com.it.myd.bean.main.File;
import com.it.myd.bean.main.User;
import com.it.myd.dao.main.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private UserDao userDao;

    @Override
    public User CheckUser(User user) {
        return userDao.CheckUser(user);
    }
    @Override
    public List<User> CheckUsername(String username) {
        return userDao.CheckUsername(username);
    }

    @Override
    public void SignUser(User user) {
        userDao.InsertUser(user);
    }
    @Override
    public void insertUserProFile(User user){
        userDao.InsertUserProFile(user);
    }
    @Override
    public File getUserProFile(User user){
        return userDao.getUserProFile(user);
    }


    @Override
    public List<User> getUserList() {
        return userDao.getUserList();
    }

    @Override
    public void insertUserStatus(User user) {
        userDao.InsertUserStatus(user);
    }

    @Override
    public void updateUserStatus(User user) {
        userDao.updateUserStatus(user);
    }

}
